package com.zoe.app.controller;

import com.zoe.app.entity.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Zoe.Zhang
 * @date 2021/10/11
 * @description
 */
@RestController
public class UserController {
    @PostMapping("/userForm")
    public void userForm(User user) {
        System.out.println(user);
    }

    @PostMapping("/userBody")
    public void userBody(@RequestBody User user) {
        System.out.println(user);
    }

    @GetMapping("/userGet")
    public void userGet(User user) {
        System.out.println(user);
    }
}
